package fr.appliClient.server.dao;

import java.util.List;

import org.synyx.hades.dao.GenericDao;
import org.synyx.hades.dao.Param;
import org.synyx.hades.dao.Query;

import fr.appliClient.server.entity.Consumption;

public interface ConsumptionDao extends GenericDao<Consumption, Long> {

	@Query("FROM Consumption c WHERE c.vehicle.registration = :registration")
	public List<Consumption> findByVehicle(@Param("registration") String registration);
}
